<template>
  <div class="app">
    <el-config-provider :locale="locale">
      <RouterView />
    </el-config-provider>
  </div>
</template>
<script setup lang="ts">
// import as from '@/service/interface/stream'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { defineComponent } from 'vue'

const locale = zhCn

// const { newSteam } = as

// ts方法导出defineComponent返回值 函数可以传入泛型进行规范
defineComponent({
  props: {},
  // data() { return { } },
  methods: {},
  setup() {
    console.log('setup')
  }
})
// newSteam({ query: "浙江省文化馆" }, (event: any) => {
//   try {
//     if (event.data) {
//       let resdata = JSON.parse(event.data)
//       console.log(resdata, 'resdata')
//     }
//   } catch (error) {
//     console.log(error, 'error');

//   }
// })

</script>
<style lang="scss">
.app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100vw;
  height: 100vh;
}
</style>
